package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 卢米埃异常结算
 *
 * @author yliyun
 * @date 2022/10/17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lumiere_abnormal_settlement")
public class LumiereAbnormalSettlement {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 商店id
     */
    private Integer shopId;

    /**
     * 钱箱中金额
     */
    private BigDecimal totalCash;

    /**
     * 钱箱中应有金额
     */
    private BigDecimal deserveCash;

    /**
     * 相差金额
     */
    private BigDecimal differenceAmount;

    /**
     * 面额与商品数量 键值对
     */
    private String denominationMap;

    /**
     * 添加时间
     */
    private LocalDateTime addTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 删除
     */
    private Integer deleted;
}
